import React from "react";
import ReactDOM from "react-dom/client";
//样式引入的顺序
//初始化样式放在最前面
import "reset-css";
//UI框架的样式

//全局样式
import "./assets/styles/global.scss";
//组件的样式
import App from "./App.tsx";
import { BrowserRouter } from "react-router-dom";
// import Router from "./router";

//状态管理
import { Provider } from "react-redux";
import store from "@/store";

ReactDOM.createRoot(document.getElementById("root")!).render(
  // React.StrictMode严格模式下rander会执行两遍
  //https://blog.csdn.net/HYHhmbb/article/details/125973790
  //为什么要加载两次
  // <React.StrictMode>
  <Provider store={store}>
    <BrowserRouter> 
      <App />
    </BrowserRouter>
  </Provider>
  // </React.StrictMode>
);
